<template>
  <iframe :src="`static/pdfjs/web/viewer.html?file=${pdfUrl}`" style="width:100%;height:100%;border:none"></iframe>
</template>

<script>
export default {
 props: {
    url: {
      type: String,
      default: "",
    },
  },
  computed: {
    pdfUrl() {
      return encodeURIComponent(this.url);
    },
  },
};
</script>

<style scoped>
</style>